package caiziyou.com.designpattern.prototype.deepclone;

import java.io.Serializable;

public class DeepCloneTarget implements Serializable,Cloneable{

	private String name;
	private String className;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public DeepCloneTarget(String name, String className) {
		super();
		this.name = name;
		this.className = className;
	}

	@Override
	public String toString() {
		return "DeepCloneTarget [name=" + name + ", className=" + className + "]";
	}

	@Override
	public Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
}
